package com.axjy.base.controller;

import com.axjy.base.service.ImageService;
import com.axjy.base.vo.BannerVo;
import com.axjy.comm.vo.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class ImageController {
    @Resource(name="imageService")
    private ImageService imageService;
    @GetMapping("/base/p/index/queryBanner")
    public Result queryBanner(){
        List<BannerVo> voList=imageService.searchBannerList();
        return Result.success(voList);
    }
}
